<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </meta>
    <title></title>
    <link rel="stylesheet" href="layui/css/layui.css" type="text/css">
    <style>
        body {
            margin: 0;
            padding: 10px;
            box-sizing: border-box;
        }
        div{box-sizing: border-box;}
        .countDiv{
            display: flex; 
            flex-direction: row;
             align-items: center; 
             justify-content: center;
             gap:20px;
             width: 100%;
             margin-bottom: 20px;
        }
        .countDiv div{ 
            min-width: 200px;
            line-height:100px;
            height:100px;
            border: 1px solid #ccc;
            flex:1;
            font-size:20px;
            text-align: center;
            font-weight: bold;
        }
    </style>
</head>

<body>
    <div class="countDiv">
        <div>用户总数：</div>
        <div>角色总数：</div>
        <div>资源总数：</div>
        <div>业务总数：</div>
    </div>
    <div id="charts" style="width: 600px;height:400px;"></div>
    <script src="layui/layui.js"></script>
    <script src="echarts/echarts.js"></script>
    <script>
        var myChart = echarts.init(document.getElementById('charts'));
        // 指定图表的配置项和数据
        var option = {
            title: {
                text: 'ECharts 入门示例'
            },
            tooltip: {},
            legend: {
                data: ['销量']
            },
            xAxis: {
                data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
            },
            yAxis: {},
            series: [
                {
                    name: '销量',
                    type: 'bar',
                    data: [5, 20, 36, 10, 10, 20]
                }
            ]
        };

        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    </script>
</body>

</html>